<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>12iframe框架判断网页加载完毕</title>

    <style>
        .iframe{
            width:80%;
            height: 500px;
        }
    </style>
</head>
<body>
    <iframe class="iframe" onload="alert('加载完毕')" src="http://www.baidu.com"></iframe>
</body>
</html>